package com.yxw.controller;

public enum ResultCode implements StatusCode{
    SUCCESS_LOGIN(1001,"登陆成功"),
    SUCCESS_LOGOUT(1007,"退出成功"),
    SUCCESS(1000,"操作成功"),
    DELETE_WER(2000,"删除成功"),
    ERROR(1500,"操作失败"),
    ERROR_LOGIN(1600,"登录失败");


    ResultCode(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    private int code;
    private String msg;
    @Override
    public int getCode() {
        return this.code;
    }

    @Override
    public String getMsg() {
        return this.msg;
    }
}
